home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Acorn RISC PD-CD 1
/
Acorn RISC PD-CD 1.iso
/
sillies
/
_docs
/
unixwars
< prev
Wrap
Text File
|
2004-01-01
|
23KB
|
403 lines
Unix Wars
=========
A long time ago, at an installation far, far away.....
It is a time of intra-system war, as forces of the user alliance struggle
to break the iron grip of the evil admin empire. Now, striking from a hidden
directory, they win their first victory. During the battle, user spies manage
to snarf source of the empire's ultimate weapon; the dreaded "rm-star", a
privileged root program with the power to destroy an entire file system at a
keystroke. Now, hotly pursued by the empire's sinister audit trail, princess
la36 races aboard her shellscript -- custodian of the stolen listings that
can save her people and restore freedom and games to the network.
As we enter the scene, an admin multiplexer is trying to kill a user ship.
Many of their signals have gotten through, and RS232 knows that a core dump
is imminent. They have scant microseconds to fork off a new process and put
Megabytes of virtual space between themselves and their implacable foes.
His companion, 3cpu, follows him only because he seems to know where he's
going.
"Oh, i just know I'm going to regret this! " cried 3cpu as he followed
RS232 through the access pipe. Quickly rs232 closed the read end and
execl'd, and their new craft detached itself from the burning shell of the
ship.
The admin commander was feeling quite pleased with the progress of the
attack when his xo called out. "Another process just forked, sir.
instructions? "
"Hold your fire -- that last power failure must have caused a trap through
zero. it's not using any cpu time, so don't waste a signal on it."
A short while later the infamous Lord Vadic himself strode through the
still-smoldering wreckage of the user ship, followed closely by a nervous
commander. "We can't seem to find that data file anywhere, Lord Vadic.
Perhaps it was deallocated when."
"What about that forked process?" vadic growled. "it could have been
pausing, holding a channel open. If any links are left I want them removed
or made inaccessible. search the entire system at nice-20 until it is found!"
Meanwhile, the two droids' tiny process dove headlong towards the only
nearby disk. "Are you sure you can ptrace this thing without aborting it?"
queried 3cpu. "its relocation bits were almost all stripped during the
attack, and I never was any good at patching binaries."
As rs232 was about to reply their process reached its endpoint and
terminated abruptly, dumping them in the midst of a large unallocated region
on the unknown volume. Many random seeks later they trudged up to the
looming wreckage of a deallocated I-node. "Shelter!" croaked 3cpu, but
rs232 had barely begun to emit a nack when a horde of dwarfish code
fragments swarmed out of it to overwhelm them. They had been captured by
glitchas.
Enter luke vaxhacker, bartering with the glitchas for replacement parts
for his uncle. They tried to sell him 3cpu, but the 'droid didn't know
protocol for an 11/40 under rsts, so Luke would need some kind of conversion
hardware. "How about this little rs232 unit? " said 3cpu "I've interfaced
with him many times before and he's excellent at keeping his bits straight."
Luke was pressed for time, so he took 3cpu's advice. The glitchas wanted to
barter some more, but the three left before getting swapped out.
rs232, however, wasn't the type to stay put without retaining screws. He
promptly scurried off into the empty disk space. "Oh, great!" said luke
"He'll probably map himself into a bad block somewhere. I guess we'd better
go after him."
Hours later the two traced him the home of old pdp-1 kenobi, who was busily
running a diagnostic on the little rs unit. "Is this droid yours? His status
registers are stuttering and someone's done some odd things to his interrupt
lines. Leaving something like this on-line is just asking for downtime --
but I think I may have him fixed for now."
Later that evening, during a futile attempt to interface rs232 to kenobi's
asteroids cartridge, luke accidentally crossed the small droid's cxr lead
with his initiate remote test. A projector crackled to life, casting a
hologram of a young lady with her hair done up like twin danish pastries
imploring help from some general os/1 kenobi. "Darn," mumbled luke "I'll
never get this asteroids game worked out."
"Why, that's the princess!" 3cpu said.
Luke peered at the image critically. "No, that's a modified steinburg dither
with anti-aliasing. nice sculpted surfaces."
Kenobi interrupted luke with a frown. "Luke, this message changes things.
listen." Kenobi seemed to think there was a possible threat to luke's #home.
If the admin troops were indeed tracing this 'droid, it was likely they
would more than just charge for cpu time. They sped off to warn luke's kin
(taking a relative path) only to find a vacant directory.
"Take your father's bytesaber, luke." Kenobi said. "you will need to learn
the ways of the source now."
"The source ?" luke queried, wide-eyed.
"The source -- the cosmic template of the system, within which all
knowledge and power can be had. But you must always beware of the dark side."
Later, after a short skim across the surface in luke's flying read-write
head, pdp-1 had them stop at the edge of the cylinder containing
/usr/spool/uucp. "Unix-to-unix copy program" said pdp-1. "you may never see
a more wretched hive of bugs and flamers. We must be cautious."
As our heroes' process entered /usr/spool/news it was met by a newsgroup
of admin protection bits. "State your uid!" Commanded a burly syscall.
"we're running under /usr/guest" said luke. "This is our first time on the
system."
"Let's see some temporary privilege bits, please."
"Uh."
"This isn't the process you are looking for," kenobi said softly. "we can
go about our business."
Several bits momentarily pulled low.
"You're free to go about your business. Mov along now!"
Pdp-1, luke and the droids made their way through a long and tortuous
nodelist (.!musocs!micomvax!philabs!linus!husc6!rutgers!cbmvax!snark) to a
dangerous netnode frequented by hackers and only seldom polled by the
minions of admin. As luke stepped up to the crossbar pdp-1 went in search of
a suitable server.
Luke had never seen such a collection of device drivers. Long ones, short
ones, ones with stacks; EBCDIC converters, local-net handlers, crt drivers,
routines for archaic printers. A cat interface twitched pointed ears at him.
"#@&*%$$#@ :><?><," transmitted a particularlsy unstructured piece of code.
"He doesn't like you." Decoded his coroutine.
"Er.sorry." replied Luke, beginning to backup his partitions.
"I don't like you either. I am queued for deletion on 12 systems."
"I'll be careful." luke said nervously.
"You'll be deallocated!" snarled the coroutine.
"This little routine isn't worth the overhead." murmered pdp-1 kenobi,
overlaying into luke's address space.
"This little routine isn't worth the overhead." repeated the coroutine
dazedly.
"%#%#@$&%&*&*&%#$$%%&%#@#@$%(*%!" encoded his companion as it attempted
to overload kenobi's segment protection. With a stroke of his bytesaber
kenobi dyked out the offending code. The coroutine retreated hurriedly.
Kenobi turned to luke. "I think I've found an i/o handler that might suit
us.
"The name's con sole0" said the routine next to pdp-1. "I hear you're
looking for some relocation."
"Yes indeed." said pdp-1 "If you've got fast enough hardware. We must get
off this device."
"Fast hardware? the milliamp falcon has made the arpagate run in less than
twelve netnodes! Why, I've even outrun cancelled messages. It's fast enough
for you, old version."
"fast hardware?" said luke unbelievingly "that thing is a paper-tape
reader!!"
He might have grown up in an out-of-the-way terminal cluster where the
natives only spoke BASIC, but he knew an asr-33 when he saw one.
"It needs an fia conversion at least." sniffed 3cpu, who (as usual) was
trying to do several things at once. Lights flashed in con sole0's eyes as
he whirled to face the parallel processor. "I've switched a few jumpers.The
milliamp falcon can run current loops around any of admin's tty fighters.
She's fast enough."
"Who's your copilot!" inquired luke, eyeing the hairy hulk that had just
shambled out of the falcon to join the group.
"Oh. Meet Sixpacca, my bookie." the creature emitted an enormous belch and
gesticulated wildly with a wad of tip sheets clenched in one fist. Luke eyed
the beercan in the other dubiously.
"Er, isn't he dr- "
Suddenly rs232 emitted an ear-splitting feep and began to chitter wildly.
They turned to see an admin command group riding the local bus directly at
them.
"That's a shutdown sequence if I ever saw one!" shouted con, sprinting
into the ship with the others close behind. "crank up the sysclock, brewie!"
"O.k. con." luke said grimly "You said this crate was fast enough. Get us
out of here."
"Shut up, kid, you bother me. initialize this heap, brewie -- I'll try to
keep their buffers full."
As his bookie computed the vectors into low core, spurious characters
flashed around the milliamp falcon.
"They're firing at us!" shouted luke. "Can't you do anything?"
"Making the jump to system space takes time, kid." con growled. "one
missed cycle and you could come down right in the middle of a pack of stack
frames!"
Bright chunks of position-independent code flashed by as the ship jumped
through the kernel page tables. The group emitted a sigh of relief as they
indirected into free space.
Meanwhile, on a distant page in user space... Two admin troopers ushered
princess la36 into a conference room behind lord vadic.
"Moff tarchive" she spat. "I should have expected to find you hanging on
vadic's aux cable. I recognized your unique pattern when I was first brought
aboard." she eyed the 0177545 tattoed on his header coldly.
"Charming to the last." Tarchive observed smoothly. "Vadic, Have you
retrieved any information?"
"Her resistance to the logic probe is considerable," vadic rasped.
"Perhaps if we boosted the supply voltage."
"You've had your chance. Now I would like the princess to witness the test
that will certify this module fully operational. Today we enable the -r beam
option, and we've chosen the princess's #home of /usr/alderaan as the primary
target."
"No! You can't! /usr/alderaan is an unprotected public directory. We have
no backup tapes! you can't."
"Then name the rebel i-node!" Tarchive snapped. A voice announced from a
hidden speaker that they'd arrived in /usr.
"2317" she whispered. "They're on /dev/rm5, i-node 2317. /mnt/dantooine."
She turned away.
Tarchive sighed with satisfaction. "There, you see, Lord vadic? She can be
reasonable. Proceed with the operation."
It took several clock ticks for the words to penetrate. "What?" the
princess gasped.
"/dev/rm5 is not a currently mounted file system." Explained tarchive
"We require a more visible target to demonstrate the power of the rm- star.
We will, of course, mount an attack on /mnt/dantooine as soon as possible."
As she watched in horror tarchive typed 'ls -la' on a nearby terminal. The
screen showed .: no such directory abrupltly the princess double-spaced and
went offline.
Meanwhile, the milliamp falcon hurtled through free space. Con sole0
finished checking the control and status registers, finally satisfying
himself that they'd lost the admin bus signals as they'd passed the
terminator. An irritable belch from sixpacca disturbed him not at all; he
knew the bookie got grouchy when losing at chess, and rs232 had just caught
him in the fischer set with a seven-ply search. Across the room luke was
too busy practicing bit-slice technique to notice the commotion.
"On a word boundary, luke," said pdp-1 "Don't just hack at it. Remember,
the bytesaber is the ceremonial weapon of the red-eye knight. It is used to
trim offensive lines of code. Handwaving won't get you anywhere. Attune
yourself with the source."
Luke turned back towards the drone humming in the air beside him. This
time his attack complemented its actions perfectly.Con sole0 was not
impressed. "Forget this bit-slicing stuff. Give me a good old prom blaster
any day!"
"glork!" said pdp-1 indistinctly. He looked momentarily vacant.
"What's wrong?" asked Luke.
"Strange. I thought I felt a disturbance in the /src. It's gone now."
"We're coming up on user space!" called sole0 from the csr. They slipped
safely through stack frames and emerged in the new context, only to find
themselves bombarded by floating freeblocks.
"What the." gasped sole0. The bookie belched unhappily. The screen showed
/usr/alderaan: not found "This is the right i-node, but it's been cleared!
Brewie, where's the nearest file?"
The bookie was beginning to belch a reply when he was interrupted by a
bright flash off to the left. "Admin tty fighters!" con shouted "A whole
dz of them. where are they coming from?"
"The host system can't be far." said pdp-1 "They've all got direct eia
connections."
As sole0 began evasive action the ship lurched suddenly. Luke noticed
that the link count was 3 and climbing rapidly.
"This is no ordinary file." murmered kenobi "Look at that ods directory
structure ahead! They seem to have us in a tractor feed."
"There's no way we can unlink in time." said sole0 "We're going in."
The milliamp falcon was swiftly pulled down to the open collector of the
admin module.
Lord vadic surveyed the battered ship as admin storm- flunkies searched for
passengers. "ls scan shows no one on board, sir" was the report. Vadic was
unconvinced. "Send a fully equipped ncheck squad aboard. I want every
location in that thing searched." He stalked away.
Aboard the falcon .luke was puzzled. "They just walked in, looked around,
and walked out.why didn't they see us?" .con smiled. "Old munchkin trick.
see that period in front of your name?" .luke spun around in time to
glimpse the decimal point. "Huh? where'd that come from?"
"Spare part from the last time I tinkered with the floating-point
accelerator" said .con. "Handy for smuggling blocks across file system
boundaries, but I never thought I'd have to use them on myself. They aren't
going to stay fooled for long, though. We'd better figure a way out of here."
"I can sneak us into their private space during the next maintenance
period said pdp-1 "We'll have to find out how to unlink the falcon before we
can escape."
Some time later our heroes catfooted their way through an empty section of
the structure. "Find us a terminal." whispered pdp-1. Con nodded and poked
his prom-blaster around a corner.
'You are in the hall of the mountain king, with passages off in all
directions. A large green fierce snake bars the way!'
"Oops! wrong turn." con muttered. They took the opposite direction.
Suddenly marching feet sounded at the other end of the corridor. They ducked
through the nearest door. The lone stormflunky in the room barely had time
to register surprise before con's blaster derezzed him.
"That's funny." Luke said "I wonder why he was carrying an axe?."
"Look! we're in luck!" said 3cpu. "He was logged in!".
"Don't just stand there," kenobi,
"Use it!" said con eagerly. The old red-eye stepped up to the keyboard.
They watched as he began to infiltrate the admin software.
Some minutes later....
'You have new mail'
"Is that an error? con said.
"%sys-w-normal. I don't think so. Someone here must know me -- but I can't
stop to investigate that now. I've found the i-node they've tied the
milliamp falcon to. I'll have to slip in and patch the reference count,
alone." He disappeared through a nearby exit().
Meanwhile, rs232 had found a serial port and gone on-line. He began to
chitter furiously.
"He keeps saying `she's here, she's here!'". Explained 3cpu "I do believe
he means princess la36. She's being held on one of the privileged levels."
Luke remembered sculpted curves. "We've got to rescue her!"
rs232 flashed a complete structure chart of the admin module on the terminal
screen. Four heads bent intently over the diagram.
"I think I see a promising access method" said luke.
"Through here. con, you and I and sixpacca will knock out a couple of
admin storm-flunkies and use their uniforms. We'll keep a channel open to
these 'droids."
"and get terminated as soon as their security catches wise." broke in
sole0 "oh well -- I guess I don't have much of a choice."
rs232 twittered reproachfully at him. A planning phase or two later they
slipped into the corridor again, with luke clad in the ex-stormflunky's
uniform. "So far, so good." whispered luke as the party came up on the last
turn in their route.
"But 3cpu told us there'd be two guards posted around this corner. sixpacca
still doesn't have a uniform!" con hissed.
"That's o.k -- I've got an idea. listen."
A minute later the two walked boldly around the corner towards the two
guards, sixpacca held between them and rumbling plaintively.
"Good day,"
"eh?" said the first guard.
"How's it goin', eh?" said the second.
"Like, what's that, eh?"
"control transfer from block 1138, dev 10/9, one for the brig." said con,
voice muffled by the stormflunky mask. "Caught him drunk and disorderly --
commander said to bring him down here to cool off."
"take off, it is not!" said the first guard. "nobody told us about it,
and we're not morons, eh?"
The bookie suddenly emitted a gargantuan belch, surged out of the grip of
his quondam captors and began hurling beercans in all directions.
"Look out, he's loose!" yelled con. He and luke started blasting roms
left and right. The guards had no time to catch on before the beams hit them.
"Quickly, now" said con "which buffer is she in? it won't take long for
the admins." The intercom interrupted him, so he took out its firmware with
a short blast." to zero in on that commotion."
Minutes later luke found the interface card he'd been looking for. The
three followed the cables to a soundproof enclosure. He lifted the lid to
peer inside.
"Aren't you a little slow for fcl?" printed princess la36.
"Wha? oh, the docksiders. he took off his shoes (for industry) and
explained "I've come to relocate you. I'm luke vaxhacker."
Suddenly, forms began to burst all around them. "They've blocked the
queue!" shouted sole0.
"There's only one way out of this stack! Over here!" said la36, printing
with overstrikes. "through this loophole!" luke and the princess disappeared
into a nearby feature.
"Belch!" said sixpacca dubiously, obviously reluctant to trust an admin
oversight.
"I don't care how crufty it is!" shouted con, pushing the bookie toward the
crock. "Belt yourself in there pronto!" With a last blast that derezzed two
stormflunkies con joined them, only to wince in dismay. the Feature had
landed them in the middle of a garbage-collection area. data chunks that
hadn't been accessed in weeks floated in pools of decaying bits.
"bletch!" was con's first comment. "and foo and barf!" was his second.
The bookie looked as though he'd just payed off a 5-to-1 long shot. luke
was polling the garbage for useful items. "What's this?" he dusted off a
flat black box with a panel display on one side and don't panic in large
friendly letters on the others. "This can't possibly help us now." he said,
and tossed it aside. The bookie was about to lay odds on it when he
disappeared. he popped up across the pool, shouting "This is no feature,
it's a bug!" and promptly vanished again. Con and the princess were close
to panic when luke reappeared.
"What happened?" they queried concurrently.
"I don't know!" luke gasped. "The bug just automagically dissolved, as far
as I could tell. Maybe it hit a breakpoint."
"I don't think so." con said. "Look how the pool is shrinking. I've got a
bad feeling about this."
The princess was the first to catch on. "They've implemented a new
compaction algorithm!" she exclaimed.
Luke remembered their channel to the 'droids. "rs232 -- shut down that
recursion, quick!"
Back in the control room rs232 searched the process table for a lisp
interpreter.
"Hurry!" said 3cpu. "Hurry, hurry!" added his other two processors.
rs232 found the lisp, interrupted it, and altered the stack frame to allow a
normal return.
"Scramble as many local control paths as you can from there and head back
to the ship." luke ordered. "we've got the princess!"
Meanwhile, pdp-1 made his way deep into the core of the rm-star, using his
ability to manipulate label to slip from context to context undetected.
Finally he caused a random trap and (through nofault of his own) arrived at
the central i-node table. Activity there was always high, but the spl6
sentries were too secure in their belief that no mere user could interrupt
them to notice the bug that pdp-1 introduced. He twiddled the i-node and
device numbers on a passing input, carefully maintaining parity, to free the
milliamp falcon. They would be long gone before the corrupted i-node was
diagnosed. He began traversing module structures towards the subprocess
where the falcon had been grounded. During the context switch he felt his
priority drop. "That's not nice!" he muttered, then recognized the dark
shape before him.
"I have waited a long time for this event, pdp-1 kenobi!" rasped dec
vadic. "We meet again at last; the circuit is closed. "
They looped several times, locking bytesabers. Mesmerized by the sight,
the few stormflunkies nearby failed to notice luke, con, sixpacca, the
princess and the droids until they'd nearly gained the falcon's input port.
A brief firefight blazed as the six hurled themselves into the ship, but
pdp-1 and lord vadic seemed too absorbed in their duel to notice. luke paused
at the port, his gaze riveted on the pair. He gasped; was that phase jitter
he saw around the old version?
"If my blade finds its mark kenobi" warned "you will be resolved to your
component bits -- but if you slice me down I will only gain computing power."
"Your documentation no longer confuses me, old version!" vadic rasped.
"my status is bus-master now!" with a sweeping stroke his bytesaber sliced
through kenobi's declaration list. As pdp-1's main body shimmered away vadic
noticed his uid go negative. "odd," he thought, since uid's are unsigned.
vadic whirled to face the falcon just as the others dragged a protesting
luke into the ship.
"We will meet again.luke!" he rasped softly to himself, as the ship
blasted free.
As the milliamp falcon hurtled away from the rm-star, the droids were
uncharacteristically silent, and princess la36 printed comforting messages
for luke. he was unconsolable, hung from the loss of his friend. but
strangely, it seemed as though he heard pdp-1's voice in the distance,
saying "may the source be with you!"
The End , or is it just the beginning ....
t5a%(mehrar)_65 >>